remove unnecessary libS logic (closes: #1146381)
authorMatthew Vernon <matthew@debian.org>
Tue, 1 Sep 2026 11:53:20 +0000 (12:53 +0100)
committerMatthew Vernon <matthew@debian.org>
Tue, 1 Sep 2026 11:53:20 +0000 (12:53 +0100)
This code wasn't doing anything in Debian (since "@libdir@" is always
already on the search path), but the difference in the pcre2-config
file itself was causing multi-arch problems, so remove it.

[similar to our older fix for #805941 which I thought wasn't necessary
any more because the output was always empty on Debian, but I'd missed
that it made the file itself different on different arches, which is a
multi-arch issue]

pcre2-config.in

index ab8ee14b62ed8eaf81839cec3b99b2f6a3cb5a0b..9ec43ce6a42eab1e7fa5ee2a29ddc28f74e7aafc 100644 (file)
@@ -30,19 +30,6 @@ fi
 libR=
 
 libS=
-case "@libdir@" in
-  # system locations on Linux, no -L needed
-  /usr/lib|/usr/lib32|/usr/lib64|/usr/lib/*-gnu*)
-  ;;
-  /lib|/lib32|/lib64|/lib/*-gnu*)
-  ;;
-  # system locations on AIX and Solaris, no -L needed
-  /usr/lib/64|/usr/lib/amd*|/usr/lib/sparc*|/usr/lib/ppc*)
-  ;;
-  *)
-  libS="-L@libdir@"
-  ;;
-esac
 
 while test $# -gt 0; do
   case "$1" in